#include<iostream>
#include<stdio.h>
using namespace std;
#include <iomanip>
#include  <cmath>
#include <stdlib.h>
#include <string.h>
int main() {
    int a;
    cin >> a;
    switch (a) {
    case 1:
        cout << "Monday";
        break;
    case 2:
        cout << "Tuesday";
        break;
    case 3:
        cout << "Wednesday";
        break;
    case 4:
        cout << "Thursday";
        break;
    case 5:
        cout << "Friday";
        break;
    case 6:
        cout << "Saturday";
        break;
    case 7:
        cout << "Sunday";
        break;

    }
}